<SCRIPT language="javascript">
        function addRow(tableID) {
 
            var table = document.getElementById(tableID);
 
            var rowCount = table.rows.length;
            var row = table.insertRow(rowCount);
 
            var colCount = table.rows[0].cells.length;

            for(var i=0; i<colCount; i++) {
			
			
			 if(rowCount >= 8) {
                        alert("You Can't Add More 8 Than Authors");
                        break;
                    }
                var newcell = row.insertCell(i);
 
                newcell.innerHTML = table.rows[0].cells[i].innerHTML;
               
                switch(newcell.childNodes[0].type) {
                    case "text":
                            newcell.childNodes[0].value = "";
                            break;
                    case "checkbox":
                            newcell.childNodes[0].checked = true;
                            break;
                    case "text":
                            newcell.childNodes[0].value = "";
                            break;
                }
            }
			
        }
 
        function deleteRow(tableID) {
			
            try {
            var table = document.getElementById(tableID);
            var rowCount = table.rows.length;

            for(var i=0; i<rowCount; i++) {
                var row = table.rows[i];
                var chkbox = row.cells[0].childNodes[0];
                if(null != chkbox && true == chkbox.checked) {
                    if(rowCount <= 1) {
                        alert("Cannot delete all the rows.");
                        break;
                    }
                    table.deleteRow(i);
                    rowCount--;
                    i--;
                }
 
            }
            }catch(e) {
                return false;
            }
        }
 
    </SCRIPT>
<script language="javascript">
function validate()
{
var num=/^[0-9-]+$/;
var name =/^[a-zA-Z. ]+$/;

if(!name.test(document.form.lastname.value))
    	
    	{
   		alert("Please Enter the Last Name");
    	document.form.lastname.focus();
        return false;
		}
if(!name.test(document.form.firstname.value))
    	
    	{
   		alert("Please Enter the First Name");
    	document.form.firstname.focus();
        return false;
		}
if(document.form.title.value=="")
    	
    	{
   		alert("Please Enter the Article Title");
    	document.form.title.focus();
        return false;
		}
if(document.form.Titleofthejournal.value=="")
    	
    	{
   		alert("Please Enter the Journal Title");
    	document.form.Titleofthejournal.focus();
        return false;
		}
if(!num.test(document.form.date.value))
    	
    	{
   		alert("Please Enter the Publication Year");
    	document.form.date.focus();
        return false;
		}
if(document.form.pages.value=="")
    	
    	{
   		alert("Please Enter the Page numer");
    	document.form.pages.focus();
        return false;
		}


}

</script>
<div class="mainWarpArea">
    <!-- Begin contentwarp -->
    <div class="contentwarp">
      <div id="register" style="background-color:#FFF;float:left;width:740px;border:1px solid #CCC;">
        <!-- Begin ContentBox -->
  <h2 style="padding-left: 20px;" class="classifiedstitle"><span style="color:#00619C">Journal Article:</span></h2>

  <table width="100%" align="center" border="0" cellpadding="0" cellspacing="0">
    <tbody><tr>
      <td valign="middle" align="left">&nbsp;</td>
    </tr>
    <tr>
      <td valign="middle" align="center">
      <table width="99%" align="center" class="font12">
      
      <tr>
      <td align="center" valign="top">
      <form action="index.php?page=assignment_manager&view=journel&step=generate" method="post" onsubmit="return validate();" name="form">

<div id="tableoutborder">
<table border="0" cellpadding="2" cellspacing="2" width="100%" align="center" height="auto">
<tbody>
<tr><td bgcolor="#F0F0F0" height="40"><div align="left"><span class="ScotchBibtabletxtbold">Author/Editor</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><span class="ScotchBibtabletxtsmall">Last Name: *
      <input name="lastname" size="14" type="text" >
  </span></td>
  <td bgcolor="#F0F0F0" height="40"><span class="ScotchBibtabletxtsmall">First Name: *
      <input name="firstname" size="14" type="first">
  </span></td>
</tr>
<!--<tr>
  <td bgcolor="#F0F0F0" height="40"><div align="left"><span class="ScotchBibtabletxtsmall">Second Author (if applicable)</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><span class="ScotchBibtabletxtsmall">Last Name:
      <input name="lastname1" size="14" type="text">
  </span></td>
  <td bgcolor="#F0F0F0" height="40"><span class="ScotchBibtabletxtsmall">
       First Name:           <input name="firstname1" size="14" type="text">
  </span></td>
</tr>-->

<tr bgcolor="#F0F0F0">  <td bgcolor="#F0F0F0" height="40" valign="top"><div align="left"><span class="ScotchBibtabletxtsmall">Second Author (if applicable)</span></div></td>
<td colspan="4" align="right"> <TABLE id="dataTable" cellpadding="2" cellspacing="2" width="500px" border="0" bgcolor="#F0F0F0"><tr>
<td  bgcolor="#F0F0F0"><INPUT type="checkbox" name="chk[]"/></td>
<td >Last Name:  <INPUT type="text" size="14" name="txt[]"></td>
<td align="right">First Name:  <INPUT type="text" size="14" name="country[]" > <INPUT type="button" style="color:#FFF; background-color:#B70014; border:#FFF solid 1px; width:20px; " value="+" onclick="addRow('dataTable')" />
 
    <INPUT type="button"  style="color:#FFF; background-color:#B70014; border:#FFF solid 1px; width:20px;" value="-" onclick="deleteRow('dataTable')" /></td> </tr>

    
    </TABLE></td>
</tr>

<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Title of the article: * </span></div></td>
  <td bgcolor="#F0F0F0"><input name="title" size="30" type="text"></td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Title of the journal: *</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><input name="Titleofthejournal" size="25" type="text"></td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Volume number: </span></div></td>
  <td bgcolor="#F0F0F0" height="40"><input name="volumenumber" size="8" type="text"></td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Issue number: </span></div></td>
  <td bgcolor="#F0F0F0" height="40"><input name="issuenumber" size="8" type="text"></td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Year of Publication: *</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><input name="date" size="4" type="text"><span class="ScotchBibtabletxtsmall"> eg: 2001 </span></td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Page number(s): *</span></div></td>
  <td bgcolor="#F0F0F0" height="40"><input name="pages" size="8" type="text"><span class="ScotchBibtabletxtsmall"> eg:p23-25 </span></td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>
<tr><td bgcolor="#F0F0F0" height="40"><div align="right"><span class="ScotchBibtabletxtbold">Digital Object Identifier(s): </span></div></td>
  <td bgcolor="#F0F0F0" height="40"><input name="doi" size="18" type="text"><span class="ScotchBibtabletxtsmall"> eg:10.1234/NP5678</span></td>
  <td bgcolor="#F0F0F0" height="40">&nbsp;</td>
</tr>
<tr><td colspan="4" align="center" bgcolor="#F0F0F0" height="40" valign="middle" >
  <span class="ScotchBibtabletxtsmall">
  <input img="" value="Generate Bibliography" alt="genBib" type="submit" border="0">
  </span>
</td></tr></tbody></table>
</div>
</form>
     
      </td>
      </tr>
        </table>
    
      </td>
    </tr>
    <tr>
      <td valign="middle" align="left">&nbsp;</td>
    </tr>
  </tbody></table>


      </div>      
      
     
      <!-- End contentwarp -->
       <?php include("includes/right_content.php");?>
      <div style="clear:both;"></div>
      
    </div>
    <!-- End mainWarpArea -->
  </div>